#!/bin/bash

if [ $# != 1 ]; then
    OS_IDX=0
else
    OS_IDX=$1
fi

#N_ROW=4700
N_ROW=600
N_COL=1250
N_BYTES=2
FAST_MODE=0
OUT_DIR=wave_20250310_600rows
FOUT_FNAME=${OUT_DIR}/wave-os-${OS_IDX}.bin

#判断是否存在tmp目录
if [ -e ${OUT_DIR} ]; then
	echo "dir ./${OUT_DIR} exists"
else
	mkdir ${OUT_DIR}
fi


DAISY_CONFIG=`cat .WKDIR`/daisy.ini

echo "*************************************************"
echo "> N_ROW       = ${N_ROW}"
echo "> N_COL       = ${N_COL}"
echo "> FATS_MODE   = ${FAST_MODE}"
echo "> FOUT_FNAME  = ${FOUT_FNAME}"

bin/capture_wave -b ${N_BYTES} -r ${N_ROW} -c ${N_COL} -f ${FAST_MODE} -o ${FOUT_FNAME} -i ${OS_IDX}

echo "*************************************************"
